package com.quicksignin.service.impl;

import com.quicksignin.dao.ResultMapper;
import com.quicksignin.pojo.SignIn;
import com.quicksignin.service.IResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by GHD on 2018/10/20.
 */
@Service
public class ResultServiceImpl implements IResultService {

    @Autowired
    private ResultMapper resultMapper;

    @Override
    public List<SignIn> result() {
        List<SignIn> response = resultMapper.result();
        System.out.println(response);
        return response;
    }

    @Override
    public List<String> getTeacherList(){
        List<String> response = resultMapper.getTeacherList();
        return response;
    }

    @Override
    public List<SignIn> getResult(String teacherName,String classDate){
        List<SignIn> response = resultMapper.getResult(teacherName,classDate);
        return response;
    }
    @Override
    public List<SignIn> getUserResult(String stuName){
        List<SignIn> response = resultMapper.getUserResult(stuName);
        return response;
    }
}
